import request, {
    Method,buyerUrl
} from '@/plugins/request.js';
// 患者列表查询
export function getPatientiList(data) {
    return request({
      url: `${buyerUrl}/buyer/passport/member/user/findRelationUser`,
      method: Method.POST,
      headers: {
        "Content-Type": "application/json"
      },
      needToken: true,
      data
    });
  }
  // 新增咨询人
export function addPatienti(data) {
    return request({
      url: `${buyerUrl}/buyer/passport/member/user/bindRelationUser`,
      method: Method.POST,
      headers: {
        "Content-Type": "application/json"
      },
      needToken: true,
      data
    });
  }
    // 删除咨询人
export function delPatienti(data) {
    console.log(data);
    return request({
      url: `${buyerUrl}/buyer/passport/member/user/deleteRelationUser`,
      method: Method.POST,
      headers: {
        "Content-Type": "application/x-www-form-urlencoded"
      },
      needToken: true,
      data
    });
  }